package com.dragon.www.haier.model;

import com.dragon.www.haier.net.AppUDPPacket;

import java.io.Serializable;

/**
 * * 指令格式：
 * ****************************** *
 * **   HEADER 4 bytes         ** *
 * **   TYPE  2 bytes          ** *
 * **   LENGTH 2 bytes         ** *
 * **   CS     2 bytes         ** *
 * **   DATA   ? bytes         ** *
 * **   END    4 bytes         ** *
 * ****************************** *
 */


/**
 * 设备指令格式
 * 固定字段：头信息、有效数据长度、校验值、尾信息
 * Created by Administrator on 2015/12/1 18:46.
 * Author: songxy
 * Email: thinkdata@163.com
 */
public class DevicePacket extends AppUDPPacket implements Serializable {
	public DevicePacket() {
		this.packetHeader = new byte[] {(byte) 0x48, (byte) 0x45, (byte) 0x41, (byte) 44 };
		this.packetCS = new byte[] {(byte) 0xff, (byte) 0xff};
		this.packetEnd = new byte[] {(byte) 0x54, (byte) 0x41, (byte) 0x49, (byte) 0x4c};
	}
}
